go/types.Const.Pkg (method, view implemented interface methods)
44 uses
go/types (current package)
infer.go#L505: tname := NewTypeName(tparam.Obj().Pos(), tparam.Obj().Pkg(), tparam.Obj().Name(), nil)
mono.go#L196: if tpar.Obj().Pkg() != pkg {
mono.go#L219: assert(typ.Obj().Pkg() == pkg)
mono.go#L271: if obj.Pkg() != pkg {
object.go#L114: func (obj *object) Pkg() *Package { return obj.pkg }
object.go#L468: func (obj *Func) Pkg() *Package { return obj.object.Pkg() }
sizes.go#L124: obj.Pkg() != nil &&
sizes.go#L125: (obj.Pkg().Path() == "sync/atomic" ||
sizes.go#L126: obj.Pkg().Path() == "internal/runtime/atomic")
go.pact.im/x/plumb/internal/gotypes
cmp.go#L217: if a.Pkg() != nil {
cmp.go#L218: pa = a.Pkg().Path()
cmp.go#L220: if b.Pkg() != nil {
cmp.go#L221: pb = b.Pkg().Path()
subst.go#L82: fields[i] = types.NewField(f.Pos(), f.Pkg(), f.Name(), s.subst(f.Type()), f.Embedded())
subst.go#L116: vars[i] = types.NewVar(v.Pos(), v.Pkg(), v.Name(), s.subst(v.Type()))
go.pact.im/x/plumb/internal/solve
checks.go#L47: return diag.Errorf(p.Pos, diag.ErrUnreachableType, "type argument %s of provider %s, from package %q (%s is unexported)", gotypes.TypeName(ta), p.Name, obj.Pkg().Path(), obj.Name())
checks.go#L54: return diag.Errorf(p.Pos, diag.ErrUnreachableType, "conversion target type %s from package %q (%s is unexported)", gotypes.TypeName(p.ConvertTo), obj.Pkg().Path(), obj.Name())
checks.go#L65: return diag.Errorf(pl.pos, diag.ErrUnreachableType, "injector input type %s, from package %q (%s is unexported)", gotypes.TypeName(t), obj.Pkg().Path(), obj.Name())
checks.go#L73: return diag.Errorf(pl.pos, diag.ErrUnreachableType, "injector output type %s, from package %q (%s is unexported)", gotypes.TypeName(t), obj.Pkg().Path(), obj.Name())
checks.go#L90: return diag.Errorf(pl.pos, diag.ErrUnreachableType, "lifted type parameter %s has a constraint from package %q (%s is unexported)", tp.Obj().Name(), obj.Pkg().Path(), obj.Name())
checks.go#L125: if pkg := tn.Pkg(); pkg != nil && pkg.Path() != destPath && !tn.Exported() {
golang.org/x/exp/apidiff
apidiff.go#L334: vars = append(vars, types.NewVar(v.Pos(), v.Pkg(), "", v.Type()))
correspondence.go#L195: if oobj.Pkg() != d.old || nobj.Pkg() != d.new {
correspondence.go#L202: if oobj.Pkg() != nil {
correspondence.go#L203: opath = oobj.Pkg().Path()
correspondence.go#L205: if nobj.Pkg() != nil {
correspondence.go#L206: npath = nobj.Pkg().Path()
correspondence.go#L232: if old.Obj().Pkg() != d.old {
golang.org/x/tools/go/types/objectpath
objectpath.go#L507: if tname.Pkg() != nil && tname.Pkg() != tr.pkg {
golang.org/x/tools/internal/gcimporter
iexport.go#L712: w.typ(obj.Type(), obj.Pkg())
iexport.go#L764: w.typ(constraint, obj.Pkg())
iexport.go#L782: w.tparamList(obj.Name(), tparams, obj.Pkg())
iexport.go#L789: w.typ(t, obj.Pkg())
iexport.go#L809: w.tparamList(obj.Name(), named.TypeParams(), obj.Pkg())
iexport.go#L813: w.typ(underlying, obj.Pkg())
iexport.go#L827: w.tparamList(obj.Name()+"."+m.Name(), sig.TypeParams(), obj.Pkg())
iexport.go#L967: w.pkg(obj.Pkg())
iexport.go#L1088: fieldPkg = t.Field(0).Pkg()
golang.org/x/tools/internal/typesinternal
isnamed.go#L23: tname.Pkg().Path() == pkgPath &&
zerovalue.go#L291: pkgName := qual(t.Obj().Pkg())
zerovalue.go#L292: if pkgName == "" || t.Obj().Pkg() == nil {
zerovalue.go#L306: if pkgName := qual(t.Obj().Pkg()); pkgName != "." && pkgName != "" {